package com.lgx.mall.business.service;

import java.util.List;

import com.lgx.common.exception.DataException;
import com.lgx.common.web.Pagination;
import com.lgx.mall.business.entity.ConsumerInfo;
import com.lgx.right.entity.User;

public interface IConsumerInfoService {
	
	public ConsumerInfo createConsumerInfo(ConsumerInfo consumerInfo)throws DataException;
//	public RechargeInfo updateRechargeInfo(RechargeInfo rechargeInfo)throws DataException;
//	public void deleteRechargeInfo(RechargeInfo rechargeInfo)throws DataException;
//	public void deleteRechargeInfo(long id)throws DataException;
	public ConsumerInfo findConsumerInfoById(long id);
	
	public List<ConsumerInfo> findConsumerInfos(Long userId);   //根据用户id检索对应的编号
	
	public Pagination findConsumerInfoPagination(Object[] params, int pageSize, int pageNum);

	public List<User> findUserByCardIdOrMobile(String userCardIdOrMobile);
	
	public void updateRechargeInfo(ConsumerInfo consumerInfo) throws DataException;
	
//	public void deleteRechargeInfos(String[] ids);
}
